package com.zx.erp.repo.mapper;

import com.zx.erp.repo.bean.Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 仓库Dao接口
 *
 * @author Jerry
 */
@Mapper
@Repository
public interface WarehouseDao {
    // 查询一个
    Warehouse findById(Integer id);

    /**
     * 查询所有
     *
     * @param ware 仓库名称、省份、城市
     * @return WareHouse
     */
    List<Warehouse> findAll(Warehouse ware);


    /**
     * 更新
     * @param ware
     * @return
     */
    Boolean updateWare(Warehouse ware);

    // 添加
    Boolean insertWare(Warehouse ware);

}